﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace GNSystem.Models
{
    [Table("Groups")]
    public class Group
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        [Required(AllowEmptyStrings= false)]
        public string GroupName { get; set; }

        [Required(AllowEmptyStrings = false)]
        public string GroupAdjective { get; set; }

        [Required(AllowEmptyStrings = true)]
        public string NameStyle { get; set; }

        public bool IsStaff { get; set; }
        public bool IsAdmin { get; set; }
        public bool AllowedViewing { get; set; }
        public bool AllowedPosting { get; set; }
        public bool AllowedCommenting { get; set; }
        public bool AllowedBlogPosting { get; set; }
    }
}